package com.situ.mall.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.situ.mall.entity.OrderItem;
import com.situ.mall.mapper.OrderItemMapper;
import com.situ.mall.mapper.OrderMapper;
import com.situ.mall.service.IOrderItemService;

@Service
public class OrderItemServiceImpl implements IOrderItemService{
	
	@Autowired
	private OrderItemMapper orderItemMappper;

//前台
	/* 2020年4月19日 order_list.jsp☞order_info 订单详情  by userId & orderNo & shippingId*/
	@Override
	public List<OrderItem> selectOrderItemInfoListByUserIdAndOrderNo(Integer userId, Long orderNo) {
		System.out.println("OrderItemServiceImpl.selectOrderItemInfoByUserIdAndOrderNo()");
		
		List<OrderItem> orderItemList = orderItemMappper.selectOrderItemInfoListByUserIdAndOrderNo(userId, orderNo);
		
		return orderItemList;
	}

}
